package dog.bean;

/**
 * @author Yue
 * @date 2017年11月29日 上午10:14:44
 */
public class Wufu extends Person implements IWuxia {
	private Wugong wugong;
	private int gongli;
	private String chenghao;
	private String miaoshu;

	public String getChenghao() {
		return chenghao;
	}

	public void setChenghao(String chenghao) {
		this.chenghao = chenghao;
	}

	public int getGongli() {
		return gongli;
	}

	public void setGongli(int gongli) {
		this.gongli = gongli;
	}

	public Wugong getWugong() {
		return wugong;
	}

	public void setWugong(Wugong wugong) {
		this.wugong = wugong;
	}

	@Override
	public void play() {
		if (wugong == null) {
			wugong = new Wugong();
		}
		StringBuilder sb = new StringBuilder();
		sb.append(getName());
		sb.append("习有");
		sb.append(wugong.getName());
		sb.append(",威力不凡，能造成");
		sb.append(wugong.getResult());
		sb.append("的效果...");
		System.out.println(sb);
	}

	
	@Override
	public String toString() {
		return "Wufu [wugong=" + wugong + ", gongli=" + gongli + ", chenghao=" + chenghao + ", miaoshu=" + miaoshu
				+ ", getName()=" + getName() + ", getSex()=" + getSex() + ", getAge()=" + getAge() + "]";
	}

	public String getMiaoshu() {
		return miaoshu;
	}

	public void setMiaoshu(String miaoshu) {
		this.miaoshu = miaoshu;
	}

}
